<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>试卷生成</title>
    <c:import url="/layout/_imports.jsp"></c:import>
</head>
<body>
<c:import url="/layout/_nav.jsp"></c:import>
<div class="container">
    <h2>生成试卷</h2>

    <form action="/paper/generate" method="post">
        <div class="form-group row">
            <label class="col-sm-2" for="title">试卷名</label>
            <div class="col-sm-10">
                <input class="form-control" id="title" type="text" name="title" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2" for="begin">答题时间</label>
            <div class="col-sm-10">
                <input class="form-control" id="begin" type="datetime-local" name="begin" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2" for="limitation">时限</label>
            <div class="col-sm-10">
                <input class="form-control" id="limitation" type="number1" name="limitation" />
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2" for="amount">题目数</label>
            <div class="col-sm-10">
                <input class="form-control" id="amount" type="number" name="amount" />
            </div>
        </div>
        <button type="submit" class="btn btn-primary">保存</button>
        <a href="/paper/manage" class="btn btn-secondary">返回列表</a>
    </form>
</div>
</body>
</html>
